# $Id: PKGBUILD 84791 2013-02-24 15:55:43Z svenstaro $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=vim-ultisnips
pkgver=2.2
_scriptid=18527
pkgrel=1
pkgdesc='TextMate-style snippets for Vim.'
arch=('any')
url='http://www.vim.org/scripts/script.php?script_id=2715'
license=('GPL2')
depends=('gvim' 'python')
groups=('vim-plugins')
replaces=('vim-snipmate')
install=vimdoc.install
source=("${pkgname}.tar.gz"::"http://www.vim.org/scripts/download_script.php?src_id=${_scriptid}")
md5sums=('b4eb88f951260efc874a2e1903c6d8e4')

package() {
  cd "${srcdir}/UltiSnips-$pkgver"

  install -dm755 "$pkgdir/usr/share/vim/vimfiles/"
  cp -r -t "$pkgdir/usr/share/vim/vimfiles/" UltiSnips after doc ftdetect ftplugin plugin syntax \
    utils
}
